smtp.xp
Xtend IVR includes a flexible SMTP plugin (smtp.xp) that enables the user to send e-mails / attachments via Gmail or other SSL / authenticated servers.
- Supports SMTP protocol
- Supports SSL / TLS security
- Supports POP3, PLAIN, LOGIN and CRAM-MD5 authentication standards for smtp
- High level functions to send raw, text or html e-mail
- Low level functions to construct an e-mail with multiple attachments / raw content
- Ability to send attachments
- On error, $error contains error string
The list of supported functions include:
- smtp.SetSSL()
- smtp.SetHeloId()
- smtp.Connect()
- smtp.Login()
- smtp.SendTextMail()
- smtp.SendHtmlMail()
- smtp.SendRawMail()
- smtp.Close()
Low level functions to construct an e-mail:
Using this approach, the different aspects of an e-mail like 'To', 'From', 'Body', 'Attachment', etc. are set separately using the individual 'Set' functions and the e-mail is send using Sendmail(). The low level functions include:
- smtp.SendMailFrom()
- smtp.SendRcptTo()
- smtp.SetTextMail()
- smtp.SetHtmlMail()
- smtp.SetRawMail()
- smtp.AddHeader()
- smtp.AddAttachment()
- smtp.SendMail()